jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)
},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a
},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a
},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a
}return -h/2*((--f)*(f-2)-1)+a
},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a
},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a
},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a
}return h/2*((f-=2)*f*f+2)+a
},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a
},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a
},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a
}return -h/2*((f-=2)*f*f*f-2)+a
},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a
},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a
},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a
}return h/2*((f-=2)*f*f*f*f+2)+a
},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a
},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a
},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a
},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a
},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a
},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a
}if(f==g){return a+h
}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a
}return h/2*(-Math.pow(2,-10*--f)+2)+a
},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a
},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a
},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a
}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a
},easeInElastic:function(l,j,r,k,h){var f=1.70158;
var g=0;
var e=k;
if(j==0){return r
}if((j/=h)==1){return r+k
}if(!g){g=h*0.3
}if(e<Math.abs(k)){e=k;
var f=g/4
}else{var f=g/(2*Math.PI)*Math.asin(k/e)
}return -(e*Math.pow(2,10*(j-=1))*Math.sin((j*h-f)*(2*Math.PI)/g))+r
},easeOutElastic:function(l,j,r,k,h){var f=1.70158;
var g=0;
var e=k;
if(j==0){return r
}if((j/=h)==1){return r+k
}if(!g){g=h*0.3
}if(e<Math.abs(k)){e=k;
var f=g/4
}else{var f=g/(2*Math.PI)*Math.asin(k/e)
}return e*Math.pow(2,-10*j)*Math.sin((j*h-f)*(2*Math.PI)/g)+k+r
},easeInOutElastic:function(l,j,r,k,h){var f=1.70158;
var g=0;
var e=k;
if(j==0){return r
}if((j/=h/2)==2){return r+k
}if(!g){g=h*(0.3*1.5)
}if(e<Math.abs(k)){e=k;
var f=g/4
}else{var f=g/(2*Math.PI)*Math.asin(k/e)
}if(j<1){return -0.5*(e*Math.pow(2,10*(j-=1))*Math.sin((j*h-f)*(2*Math.PI)/g))+r
}return e*Math.pow(2,-10*(j-=1))*Math.sin((j*h-f)*(2*Math.PI)/g)*0.5+k+r
},easeInBack:function(e,f,a,n,h,g){if(g==undefined){g=1.70158
}return n*(f/=h)*f*((g+1)*f-g)+a
},easeOutBack:function(e,f,a,n,h,g){if(g==undefined){g=1.70158
}return n*((f=f/h-1)*f*((g+1)*f+g)+1)+a
},easeInOutBack:function(e,f,a,n,h,g){if(g==undefined){g=1.70158
}if((f/=h/2)<1){return n/2*(f*f*(((g*=(1.525))+1)*f-g))+a
}return n/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a
},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a
},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a
}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a
}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a
}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a
}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a
}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a
}});
(function(a){a.fn.hoverTimeout=function(d,j,b,e){return this.each(function(){var f=null,g=a(this);
g.hover(function(){clearTimeout(f);
f=setTimeout(function(){j.call(g)
},d)
},function(){clearTimeout(f);
f=setTimeout(function(){e.call(g)
},b)
})
})
}
})(jQuery);
function datetime(a){(function(c){var d={months:["January","February","March","April","May","June","July","August","September","October","November","December"],dateplace:"updates",timeplace:"timer"};
d=c.extend({},d,a);
var b=new Date();
var i=b.getDate();
var e=b.getMonth();
var f=b.getYear();
var g=(f<1000)?f+1900:f;
document.getElementById(d.dateplace).innerHTML=d.months[e]+" "+i+", "+g;
var h=function(k){if(k<10){k="0"+k
}return k
};
var j=function(){var o="";
var m=new Date();
var l=m.getHours();
var k=m.getMinutes();
var n=m.getSeconds();
if(l<12){o="AM"
}else{o="PM"
}if(l==0){l=12
}if(l>12){l=l-12
}l=h(l);
k=h(k);
n=h(n);
document.getElementById(d.timeplace).innerHTML=l+":"+k+":"+n+" "+o
};
setInterval(j,500)
})(jQuery)
}function daters(){$(".timestamp-link abbr.published").each(function(){var g=$(this).attr("title");
var a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];
if(g!=""){var i=g.substring(0,10),f=i.substring(0,4),b=i.substring(5,7),e=i.substring(8,10),c=a[parseInt(b,10)-1]
}var d=$(this).parents(".post");
var h=d.children(".dater");
h.removeClass("hidex").addClass("show");
$("strong",h).html(e);
$("small",h).html(f);
$("span",h).html(c)
})
}
function actinave(e){var h=window.location.href;
e("#navi a").each(function(){if(this.href===h){var a=e(this).parents("li").children("a").addClass("current")
}});e("#navi ul").removeClass("hidden");
e("#navi li").hoverTimeout(100,function(){e(this).parent("ul").css("overflow","visible");
e(this).children("ul").filter(":not(:animated)").slideDown()
},500,function(){e(this).parent("ul").css("overflow","visible");
e(this).children("ul").slideUp(800,"easeInExpo")
});e("#mobilenav").click(function(){e("#navi").slideToggle();
e(this).toggleClass("active");
return false
});e("#top_mobilenav").click(function(){e("#PageList1 ul").slideToggle();
e(this).toggleClass("active");
return false
});function f(){if(e(window).width()>767){e("#navi").css("display","block").removeClass("suball")
}else{if(e(window).width()<=767&&e("#mobilenav").attr("class")==="active"){e("#navi").css("display","block").addClass("suball")
}else{if(e(window).width()<=767&&e("#mobilenav").attr("class")!=="active"){e("#navi").css("display","none").addClass("suball")
}}}}function g(){if(e(window).width()>767){e("#PageList1 ul").css("display","block")
}else{if(e(window).width()<=767&&e("#top_mobilenav").attr("class")==="active"){e("#PageList1 ul").css("display","block")
}else{if(e(window).width()<=767&&e("#top_mobilenav").attr("class")!=="active"){e("#PageList1 ul").css("display","none")
}}}}f();g();
e(window).resize(f);
e(window).resize(g)
}


function searcjw(a){(function(d){var f={blogURL:"",srcBlank:"http://1.bp.blogspot.com/-htG7vy9vIAA/Tp0KrMUdoWI/AAAAAAAABAU/e7XkFtErqsU/s1600/grey.gif",findText:"Search results for keyword",NotfindText:"No result!",Showthumb:true,LoadingText:"Searching...",scrthumbSize:50,summaryLength:100};
f=d.extend({},f,a);
var b=d("#ajax-search-form"),e=b.find(":text");
b.append('<div id="search-result"></div>');
var c=d("#search-result");
b.on("submit",function(){var g=e.val();
c.show().html('<div class="load">'+f.LoadingText+"</div>");
d.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/summary?alt=json-in-script&q="+g+"&max-results=9999",function(k){var j=k.feed.entry,q,p,i,h,m="";
if(j!==undefined){m="<h4>"+f.findText+" &quot;"+g+"&quot;</h4>";
m+='<a class="close" href="/">&times;</a><ol>';
for(var o=0;
o<j.length;
o++){var l=new RegExp(g,"ig"),i=j[o].title.$t.replace(l,"<mark>"+g+"</mark>");
for(var n=0;
n<j[o].link.length;
n++){if(j[o].link[n].rel=="alternate"){h=j[o].link[n].href
}}if(f.summaryLength>0){if("content" in j[o]){q=j[o].content.$t
}else{if("summary" in j[o]){q=j[o].summary.$t
}else{q=""
}}q=q.replace(/<\S[^>]*>/g,"");
if(q.length>f.summaryLength){q=q.substring(0,f.summaryLength)+"..."
}q=q.replace(l,"<mark>"+g+"</mark>")
}if(f.Showthumb===true){if("media$thumbnail" in j[o]){p=j[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")
}else{p=f.srcBlank
}}m+='<li><a href="'+h+'" >'+(f.Showthumb===true?'<img width="'+f.scrthumbSize+'" height="'+f.scrthumbSize+'" src="'+p+'"/>':"")+"<strong>"+i+"</strong></a>"+(f.summaryLength>0?"<p>"+q+"</p>":"")+"</li>"
}m+="</ol>";
c.html(m)
}else{c.html('<a class="close" href="/">&times;</a><strong>'+f.NotfindText+"</strong>")
}},"jsonp");
return false
});
b.on("click",".close",function(){c.fadeOut();
return false
})
})(jQuery)
}



function ShowPost1(a){(function(b){var g={blogURL:"",MaxPost:9,idcontaint:"",FirstImageSize:360,ImageSize:240,Summarylength:200,animated:false,loadingClass:"loadingz",pBlank:"",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};
g=b.extend({},g,a);
var d=b(g.idcontaint);
d.html('<div class="buo-ngjowo"><ul class="uong-widget"></ul></div>').addClass(g.loadingClass);
b.get((g.blogURL===""?window.location.protocol+"//"+window.location.host:g.blogURL)+"/feeds/posts/summary"+(g.tagName===false?"":"/-/"+g.tagName)+"?max-results="+g.MaxPost+"&orderby=published&alt=json-in-script",function(t){var m,u,h,M,o,v,k,s,r,l,q,j,f,w="",p=t.feed.entry;
for(var n=0;
n<p.length;
n++){for(var e=0;
e<p[n].link.length;
e++){if(p[n].link[e].rel=="alternate"){m=p[n].link[e].href;
break
}}for(var f=0;
f<e;
f++){if(p[n].link[f].rel=="replies"&&p[n].link[f].type=="text/html"){M=p[n].link[f].title.split(" ")[0];
break
}}if("media$thumbnail" in p[n]){o=p[n].media$thumbnail.url
}else{o=g.pBlank
}if("content" in p[n]){h=p[n].content.$t
}else{if("summary" in p[n]){h=p[n].summary.$t
}else{h=""
}}h=h.replace(/<\S[^>]*>/g,"");
if(h.length>g.Summarylength){h=h.substring(0,g.Summarylength)+"..."
}
if(p[n]===p[0]){o=o.replace(/\/s[0-9]+\-c/g,"/s"+g.FirstImageSize+"-p");
if(o.indexOf("img.youtube.com/vi/")!=-1){o=o.replace("default","0")
}k="<p>"+h+"</p>"
}else{o=o.replace(/\/s[0-9]+\-c/g,"/s"+g.ImageSize+"-p");
k=""
}u=p[n].title.$t;
f=p[n].published.$t.substring(0,10);
s=f.substring(0,4);
r=f.substring(5,7);
l=f.substring(8,10);
q=g.MonthNames[parseInt(r,10)-1];
     v='<div class="img_styleU_jowo"><a title="'+u+'" class=" " href="'+m+'"><img src="'+o+'"/></a></div>';
     j='<div class="mores"><a class="more-info" href="'+m+'">View More</a><i class="icon-time"></i><span>'+l+' '+q+' '+s+'</span><span class="mments"> '+M+'</span></div>';
     w+='<li><div class="uj_style_u-jowo uj_style_uongj">'+v+' <h3><a href="'+m+'">'+u+'</a></h3><div class="post-title"><div class="meta-info">'+l+' '+q+' '+s+' - '+M+' comment</div>'+k+' '+j+'<div class="clear"></div></div></div></li>'
}b("ul",d).append(w);
if(g.animated){b("ul",d).addClass("scroll-item");
b(g.idcontaint+" .buo-ngjowo").flexslider({animation:"slide",selector:".scroll-item > li",animationLoop:true,itemWidth:290,pauseOnHover:true,move:3,controlNav: true,itemMargin:0,minItems:4,mousewheel:false,maxItems:4})
}else{if(g.tagName!=false){d.append('<h4 class="uj-box-title"><a href="/search/label/'+encodeURIComponent(g.tagName)+'?&max-results=7"><i class="icon-list-ul"></i></a></h4>')
}}d.removeClass(g.loadingClass)
},"jsonp")
})(jQuery)
}



function ShowPost2(a){(function(b){var g={blogURL:"",MaxPost:9,idcontaint:"",FirstImageSize:600,ImageSize:600,Summarylength:100,animated:false,loadingClass:"loadingz",pBlank:"",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};
g=b.extend({},g,a);
var d=b(g.idcontaint);
d.html('<div class="buo-ngjowo"><ul class="uong-widget"></ul></div>').addClass(g.loadingClass);
b.get((g.blogURL===""?window.location.protocol+"//"+window.location.host:g.blogURL)+"/feeds/posts/summary"+(g.tagName===false?"":"/-/"+g.tagName)+"?max-results="+g.MaxPost+"&orderby=published&alt=json-in-script",function(t){var m,u,h,M,o,v,k,s,r,l,q,j,f,w="",p=t.feed.entry;
for(var n=0;
n<p.length;
n++){for(var e=0;
e<p[n].link.length;
e++){if(p[n].link[e].rel=="alternate"){m=p[n].link[e].href;
break
}}for(var f=0;
f<e;
f++){if(p[n].link[f].rel=="replies"&&p[n].link[f].type=="text/html"){M=p[n].link[f].title.split(" ")[0];
break
}}if("media$thumbnail" in p[n]){o=p[n].media$thumbnail.url
}else{o=g.pBlank
}if("content" in p[n]){h=p[n].content.$t
}else{if("summary" in p[n]){h=p[n].summary.$t
}else{h=""
}}h=h.replace(/<\S[^>]*>/g,"");
if(h.length>g.Summarylength){h=h.substring(0,g.Summarylength)+"..."
}
if(p[n]===p[0]){o=o.replace(/\/s[0-9]+\-c/g,"/s"+g.FirstImageSize+"-p");
if(o.indexOf("img.youtube.com/vi/")!=-1){o=o.replace("default","0")
}k="<p>"+h+"</p>"
}else{o=o.replace(/\/s[0-9]+\-c/g,"/s"+g.ImageSize+"-p");
k="<p>"+h+"</p>"
}u=p[n].title.$t;
f=p[n].published.$t.substring(0,10);
s=f.substring(0,4);
r=f.substring(5,7);
l=f.substring(8,10);
q=g.MonthNames[parseInt(r,10)-1];
     v='<div class="img_styleU_jowo"><a title="'+u+'" class=" " href="'+m+'"><img src="'+o+'"/></a></div>';
     j='<div class="mores"><a class="more-info" href="'+m+'">View More</a><i class="icon-time"></i><span>'+l+' '+q+' '+s+'</span><span class="mments"> '+M+'</span></div>';
     w+='<li><div class="uj_style_u-jowo uj_style_uongj">'+v+' <h3><a href="'+m+'">'+u+'</a></h3><div class="post-title"><div class="meta-info">'+l+' '+q+' '+s+' - '+M+' comment</div>'+k+' '+j+'<div class="clear"></div></div></div></li>'
}b("ul",d).append(w);
if(g.animated){b("ul",d).addClass("scroll-item");
b(g.idcontaint+" .buo-ngjowo").flexslider({animation:"slide",selector:".scroll-item > li",animationLoop:true,itemWidth:290,pauseOnHover:true,move:3,controlNav: true,itemMargin:0,minItems:4,mousewheel:false,maxItems:4})
}else{if(g.tagName!=false){d.append('<h4 class="uj-box-title"><a href="/search/label/'+encodeURIComponent(g.tagName)+'?&max-results=7"><i class="icon-list-ul"></i></a></h4>')
}}d.removeClass(g.loadingClass)
},"jsonp")
})(jQuery)
}



window.labelinc=(function(){var b=function(g){var f=g||{},h=f.url_blog||window.location.host,a=f.id_labelcontent||"#labelbar";
$.get("http://"+h+"/feeds/posts/summary?max-results=0&alt=json-in-script",function(e){var l=e.feed.category,d="";
if(l!==undefined){d="<span>+</span><ul class='sb-item'>";
for(var k=0;
k<l.length;
k++){d+='<li><a href="/search/label/'+encodeURIComponent(l[k].term)+'?&max-results=7">'+l[k].term+"</a></li>"
}d+="</ul>";
$(a).html(d)
}else{$(a).html("<span>No Label!</span>")
}},"jsonp");
$(".menu_item div .lines").click(function(){$("#labelbar").slideToggle("fast");
$(this).toggleClass("active");
return false
})};return function(a){b(a)
}})();


function NewsTicker(a){(function(b){var e={blogURL:"",MaxPost:4,Speed:0.1,direction:"ltr",titleText:"headlines",displayType:"reveal",Container:"#ticker-wrapper",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};
e=b.extend({},e,a);
b(e.Container).addClass("loading");
b.get((e.blogURL===""?window.location.protocol+"//"+window.location.host:e.blogURL)+"/feeds/posts/summary?max-results="+e.MaxPost+"&orderby=published&alt=json-in-script",function(d){var n,q,s,o,f,l,u,p,m,g,k,r="",t=d.feed.entry;
if(t!==undefined){for(var h=0;
h<t.length;
h++){for(var K=0;
K<t[h].link.length;
K++){if(t[h].link[K].rel=="alternate"){n=t[h].link[K].href
}}q=t[h].title.$t;
g=t[h].published.$t.substring(0,10);
s=g.substring(0,4);
o=g.substring(5,7);
f=g.substring(8,10);
l=e.MonthNames[parseInt(o,10)-1];
u=t[h].published.$t.substring(11,16);
p=u.substring(0,2);
m=u.substring(2,5);
if(p<12){k="AM"
}else{k="PM"
}if(p===0){p=12
}if(p>12){p=p-12
         }r+='<li><h3><a class="title" href="'+n+'">'+p+""+m+" "+k+' -  '+q+"</a></h3></li>"
}b(e.Container).html('<h1 class="ticker-header">headlines</h1><ul class="ticker">'+r+"</ul>").removeClass("loading");
b("#newstick").ticker({speed:e.Speed,direction:e.direction,titleText:e.titleText,displayType:e.displayType})
}else{b(e.Container).html("<span>No result!</span>").removeClass("loading")
}},"jsonp")
})(jQuery)}

(function(a){a(window).scroll(function(){if(a(this).scrollTop()>250){a("#top").removeAttr("href");
a("#top").stop().animate({height:50,opacity:1},{duration:500,queue:false})
}else{a("#top").stop().animate({height:50,opacity:0},{duration:500,queue:false})
}});
a(function(){a("#top").click(function(){a("html, body").animate({scrollTop:0},"slow");
return false
})
})
})(jQuery);


function PostSlide(b){(function(a){var f={blogURL:"",MaxPost:5,idcontaint:"",ImageSize:500,Summarylength:150,RandompostActive:true,loadingClass:"loadingz",pBlank:"",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};
f=a.extend({},f,b);
var g=a(f.idcontaint);
g.html('<div class="uj_slider_wrap"><ul class="slides"></ul></div>').addClass(f.loadingClass);
var h=function(D){var z,B,x,e,F,C,G,j,E,y,A="",w=D.feed.entry;
for(var H=0;
H<w.length;
H++){for(var d=0;
d<w[H].link.length;
d++){if(w[H].link[d].rel=="alternate"){z=w[H].link[d].href;
break
}}if("media$thumbnail" in w[H]){F=w[H].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.ImageSize);
if(w[H].media$thumbnail.url.indexOf("img.youtube.com")!=-1){F=w[H].media$thumbnail.url.replace("default","0")
}}else{F=f.pBlank.replace(/\/s[0-9]+\-c/g,"/s"+f.ImageSize)
}if("content" in w[H]){x=w[H].content.$t
}else{if("summary" in w[H]){x=w[H].summary.$t
}else{x=""
}}x=x.replace(/<\S[^>]*>/g,"");
if(x.length>f.Summarylength){x=x.substring(0,f.Summarylength)+"..."
}B=w[H].title.$t;
y=w[H].published.$t.substring(0,10);
C=y.substring(0,4);
G=y.substring(5,7);
j=y.substring(8,10);
E=f.MonthNames[parseInt(G,10)-1];
     A+='<li class="uj_slider_item"><div class="slider_img"><a title="'+B+'" class="" href="'+z+'"><img src="'+F+'"/></a></div><div class="slider_caption"><h3><a href="'+z+'">'+B+'</a><p>'+x+"</p></h3></div></li>"
}g.find("ul.slides").append(A);
if(!f.RandompostActive){a(f.idcontaint+" .uj_slider_wrap").flexslider({animation:"face",animationLoop:true,directionNav: false, smoothHeight: false,controlNav: true,sync: ".slider_navbar",slideshowSpeed: 6000,slideshow: true,mousewheel: true,keyboard: true});
g.removeClass(f.loadingClass)
}};
a.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/summary"+(f.tagName===false?"":"/-/"+f.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(e){Total_Posts_Number=e.feed.openSearch$totalResults.$t;
if(Total_Posts_Number<=f.MaxPost){f.MaxPost=Total_Posts_Number
}var r=[];
while(r.length<f.MaxPost){var p=Math.ceil(Math.random()*Total_Posts_Number);
var d=false;
for(var k=0;
k<r.length;
k++){if(r[k]==p){d=true;
break
}}if(!d){r[r.length]=p
}}if(f.RandompostActive==true){var j;
for(var o=0;
o<f.MaxPost;
o++){j=a.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default"+(f.tagName===false?"":"/-/"+f.tagName)+"?start-index="+r[o]+"&max-results=1&orderby=published&alt=json-in-script",h,"jsonp")
}a.when(j).done(function(){a(f.idcontaint+" .uj_slider_wrap").flexslider({animation:"fade",selector:".slides > li",animationLoop:true,smoothHeight:true,pauseOnHover:true,mousewheel:false,initDelay:f.MaxPost*700,before:function(){a(f.idcontaint).find(".slider_caption").stop().animate({left:100,opacity:0},2000);
a(f.idcontaint).find(".caption").stop().animate({left:0,opacity:0},2000)
},after:function(){a(f.idcontaint).find(".slider_caption").stop().animate({left:10,opacity:1},2000);
a(f.idcontaint).find(".caption").stop().animate({left:50,opacity:1},2000)
}});
g.removeClass(f.loadingClass)
})
}else{a.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default"+(f.tagName===false?"":"/-/"+f.tagName)+"?max-results="+f.MaxPost+"&orderby=published&alt=json-in-script",h,"jsonp")
}},"jsonp")
})(jQuery)
};




function carouse1(a){(function(b){var e={blogURL:"",MaxPost:5,ImageSize:100,RandompostActive:false,Container:".slider_navbar",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};
e=b.extend({},e,a);
b(e.Container).addClass("loading");
b.get((e.blogURL===""?window.location.protocol+"//"+window.location.host:e.blogURL)+"/feeds/posts/summary"+(e.tagName===false?"":"/-/"+e.tagName)+"?max-results="+e.MaxPost+"&orderby=published&alt=json-in-script",function(k){var q,K,p,o,l,n,g,t,F,s,r,u,d="",f=k.feed.entry;
if(f!==undefined){for(var m=0;
m<f.length;
m++){for(var h=0;
h<f[m].link.length;
h++){if(f[m].link[h].rel=="alternate"){q=f[m].link[h].href
break
}}if("media$thumbnail" in f[m]){F=f[m].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+e.ImageSize);
if(f[m].media$thumbnail.url.indexOf("img.youtube.com")!=-1){F=f[m].media$thumbnail.url.replace("default","0")
}}else{F=e.pBlank.replace(/\/s[0-9]+\-c/g,"/s"+e.ImageSize)
}
K=f[m].title.$t;
r=f[m].published.$t.substring(0,10);
p=r.substring(0,4);
o=r.substring(5,7);
l=r.substring(8,10);
n=e.MonthNames[parseInt(o,10)-1];
g=f[m].published.$t.substring(11,16);
t=g.substring(0,2);
s=g.substring(2,5);
if(t<12){u="AM"
}else{u="PM"
}if(t===0){t=12
}if(t>12){t=t-12
}d+='<li><a class="title" href="#"><div class="post-thumbnail"><img src="'+F+'"/></div><div class="info-nav"><h3>'+K+"</h3></div></a></li>"
}b(e.Container).html('<ul class="slides">'+d+"</ul>").removeClass("loading");
b(".slider_navbar").flexslider({slideshowSpeed: 6000,controlNav: false,directionNav: false,animationLoop: true,slideshow: true,itemWidth: 180,asNavFor: ".uj_slider_wrap"})
}else{b(e.Container).html("<span>No result!</span>").removeClass("loading")
}},"jsonp")
})(jQuery)
}